package com.travelgroup.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.travelgroup.enums.UserGroupStatus;
import com.travelgroup.enums.RoleType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserGroup {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long userId;

    private Long groupId;

    private RoleType role;

    private Long couponId;

    private BigDecimal actualPayment;

    private UserGroupStatus status;

    private LocalDateTime cancelTime;

    private LocalDateTime joinTime;

    private Boolean deleted;
}
